﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ScheduleClass.aspx.cs" Inherits="UniversityManagementSystem.UI.ScheduleClass" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/fontStyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div class="fontStyle" style="height : 600px;">
        <asp:Label ID="Label1" runat="server" Text="Department" 
            CssClass="labelAlignment"></asp:Label>
    
        <asp:DropDownList ID="departmentDropDownList" runat="server" 
            Width="227px" AutoPostBack="True" 
            onselectedindexchanged="departmentDropDownList_SelectedIndexChanged" 
            CssClass="comboBoxAlignment">
        </asp:DropDownList>
        <br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="Semester    " 
            CssClass="labelAlignment"></asp:Label>
        <asp:DropDownList ID="semesterDropDownList" runat="server" 
            Width="227px" AutoPostBack="True" 
            onselectedindexchanged="semesterDropDownList_SelectedIndexChanged" 
            CssClass="comboBoxAlignment">
        </asp:DropDownList>
        <br />
        <br />
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
        <asp:Label ID="Label3" runat="server" Text="Course" CssClass="labelAlignment"></asp:Label>
        <asp:DropDownList ID="courseDropDownList" runat="server" 
            Width="227px" CssClass="comboBoxAlignment">
        </asp:DropDownList>
        <br />
        <br />
        </ContentTemplate>
        <Triggers>
                <asp:AsyncPostBackTrigger ControlID="departmentDropDownList" EventName="SelectedIndexChanged"/>
                <asp:AsyncPostBackTrigger ControlID="semesterDropDownList" EventName="SelectedIndexChanged"/>
            </Triggers>
            </asp:UpdatePanel>
        <asp:Label ID="Label4" runat="server" Text="Building" CssClass="labelAlignment"></asp:Label>
        <asp:DropDownList ID="buildingDropDownList" runat="server" 
            Width="227px" AutoPostBack="True" 
            onselectedindexchanged="buildingDropDownList_SelectedIndexChanged" 
            CssClass="comboBoxAlignment">
        </asp:DropDownList>
        <br />
        <br />
        <asp:Label ID="Label5" runat="server" Text="Room" CssClass="labelAlignment"></asp:Label>
        <asp:DropDownList ID="roomDropDownList" runat="server" 
            Width="227px" CssClass="comboBoxAlignment">
        </asp:DropDownList>
        <br />
        <br />
        <asp:Label ID="Label6" runat="server" Text="Day" CssClass="labelAlignment"></asp:Label>
        <asp:DropDownList ID="dayDropDownList" runat="server" 
            Width="227px" CssClass="comboBoxAlignment">
            <asp:ListItem>Saturday</asp:ListItem>
            <asp:ListItem>Sunday</asp:ListItem>
            <asp:ListItem>Monday</asp:ListItem>
            <asp:ListItem>Tuesday</asp:ListItem>
            <asp:ListItem>Wednesday</asp:ListItem>
            <asp:ListItem>Thursday</asp:ListItem>
            <asp:ListItem>Friday</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        <asp:Label ID="Label9" runat="server" Text="Class Starts At" 
            CssClass="labelAlignment"></asp:Label><asp:TextBox ID="timeFromTextBox" runat="server" Width="94px" 
            CssClass="comboBoxAlignment"></asp:TextBox>
            
            
            <div style="float : left; padding-left : 2px; height : 26px;">
        <asp:DropDownList ID="startTimeSpanDropDownList" runat="server" 
            Width="70px" AutoPostBack="True" CssClass="comboBoxAlignment" 
            Height="28px">
            <asp:ListItem>AM</asp:ListItem>
            <asp:ListItem>PM</asp:ListItem>
        </asp:DropDownList>
        </div>
        &nbsp;&nbsp;
        <asp:RequiredFieldValidator ID="timeFromRequiredFieldValidator" runat="server" 
            ControlToValidate="timeFromTextBox" 
            ErrorMessage="Starting time required" ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="Label8" runat="server" Text="Class Ends At" 
            CssClass="labelAlignment"></asp:Label>
        <asp:TextBox ID="timeToTextBox" runat="server" Width="94px" 
            CssClass="comboBoxAlignment"></asp:TextBox>

            <div style="float : left; padding-left : 2px; height : 26px;">
        <asp:DropDownList ID="endTimeSpanDropDownList" runat="server" 
            Width="70px" AutoPostBack="True" CssClass="comboBoxAlignment" Height="28px">
            <asp:ListItem>AM</asp:ListItem>
            <asp:ListItem>PM</asp:ListItem>
        </asp:DropDownList>
        </div>

        &nbsp;&nbsp;

        <asp:RequiredFieldValidator ID="timeToRequiredFieldValidator" runat="server" 
            ControlToValidate="timeToTextBox" ErrorMessage="End time required" 
            ForeColor="Red"></asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="messageLabel" runat="server"></asp:Label>
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:Button ID="saveButton" runat="server" onclick="saveButton_Click" 
            Text="Save" CssClass="button" Width="100px" />
    </div>
</asp:Content>
